package com.groupbuying.common.service;

import com.groupbuying.common.intercepter.FeignIntercepter;
import com.groupbuying.common.utils.SpringMultipartEncoder;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @anthor wenguoqiang
 * @date: 2019/04/14 17:53
 * @company 够样
 * @des
 **/
@FeignClient(name = "service-ys", configuration = {FeignIntercepter.class})
public interface YsRpcService {

    /**
     * 订单支付
     * @param
     * @return
     */
    @RequestMapping(value = { "/ysservice/orderPay" },  method = {RequestMethod.POST })
    public String orderPay ( @RequestParam Map<String, Object> mapParams);

    /**
     * 银盛支付提现接口
     * @param mapParams
     * @return
     */
    @RequestMapping(value = { "/ysservice/ysePayWithdraw" },  method = {RequestMethod.POST })
    public String ysePayWithdraw ( @RequestParam Map<String, Object> mapParams);

    /**
     * 银盛支付代付查询（提现查询）
     * @param mapParams
     * @return
     */
    @RequestMapping(value = { "/ysservice/ysePayDfQuery" },  method = {RequestMethod.POST })
    public String ysePayDfQuery ( @RequestParam Map<String, Object> mapParams);

    /**
     * 银盛支付普通子商户提现接口
     * @param mapParams
     * @return
     */
    @RequestMapping(value = { "/ysservice/ysePayMerchantWithdraw" },  method = {RequestMethod.POST })
    public String ysePayMerchantWithdraw ( @RequestParam Map<String, Object> mapParams);

    /**
     * 银盛支付普通子商户提现查询（提现查询）
     * @param mapParams
     * @return
     */
    @RequestMapping(value = { "/ysservice/ysePayMerchantQuery" },  method = {RequestMethod.POST })
    public String ysePayMerchantQuery ( @RequestParam Map<String, Object> mapParams);

}
